package com.init.engineering.service;

import com.init.engineering.pages.PageResult;
import com.init.engineering.pages.QueryPageBean;
import com.init.engineering.pojo.Developer;

import java.util.List;

public interface DeveloperService {

    /**
     * 找到所有开发商信息
     * @return
     */
    List<Developer> findDevelopers();

    /**
     * 通过id找到开发商
     * @param did
     * @return
     */
    Developer findDeveloperByDid(String did);


    /**
     * 分页查询开发商
     * @param queryPageBean
     * @return
     */
    PageResult findDevelopersByPage(QueryPageBean queryPageBean);

    /**
     * 通过did删除一个开发商
     * @param did
     * @return
     */
    int deleteDeveloper(String did);

    /**
     * 新增一个开发商
     * @param developer
     * @return
     */
    int saveDeveloper(Developer developer);


    int UpdateDeveloper(Developer developer);

}
